package com.jf3q.common.service;

import com.jf3q.common.domain.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jf3q.common.dto.EduTeacherRankDTO;
import com.jf3q.common.vo.TeacherDetailsVo;

import java.util.List;

/**
 *
 */
public interface TeacherService extends IService<EduTeacher> {

    /**
     * 初始化讲师播放次数到redis
     */
    List<EduTeacherRankDTO> saveTeacherRank();

    /**
     * 查询redis中讲师播放次数排行榜
     */
    List<EduTeacher> queryTeacherRank();

    EduTeacher queryEduTeacherById(String teacherId);

    /**
     * 增加播放次数
     *
     * @param teacherId 讲师ID
     */
    void playTeacherVideo(String teacherId);

}
